package com.roncoo.config;

/**
 * @PACKAGE_NAME: com.roncoo.ysq.config
 * @NAME: CustomizeException
 * @USER: yuanshuaiqiang
 * @DATE: 2021/3/29
 * @TIME: 11:07
 */

public class CustomizeException extends RuntimeException {

    private Integer code;
    private String message;

    public CustomizeException(CustomizeErrorCode customizeErrorCode) {

        this.code = customizeErrorCode.getCode();
        this.message = customizeErrorCode.getMessage();

    }

    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
